const { spawn } = require('child_process');
const path = require('path')

const child = spawn(path.join(__dirname, 'chrome_native_messaging_host.exe'));

child.on('exit', (...args) => {
    console.log('backend process exit', args);
});

child.on('error', (error) => {
    console.log('backend process error:', error);
});